Ext.toast = function(){  
    var msgCt;  
    function createBox(t, s){  
       return '<div class="msg"><h3>' + t + '</h3><p>' + s + '</p></div>';  
    }  
    return {  
        msg : function(title, format){  
            if(!msgCt){  
                msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);  
            }  
            var s = Ext.String.format.apply(String, Array.prototype.slice.call(arguments, 1));  
            var m = Ext.DomHelper.append(msgCt, createBox(title, s), true);  
            m.hide();  
            m.slideIn('t').ghost("t", { delay: 1000, remove: true});  
        },  
                
        init : function(){  
            if(!msgCt){  
                // It's better to create the msg-div here in order to avoid re-layouts  
                // later that could interfere with the HtmlEditor and reset its iFrame.  
                msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);  
            }  
        }  
    };  
}();